package com.zuoye.day01;

public class Repeat {
    public static void main(String[] args) {
        int[] arr = {10,43,28,3,84,10,74,89,33,43};
        for(int i = 0;i < arr.length-1;i++){
            for (int j = i+1;j < arr.length;j++){
                if(arr[i] == arr[j] && (i != j)){
                    System.out.println("重复元素是:" + arr[j]);//i’j都行

                }
            }
        }

    }
}



